<?php
class ORMpz_profile {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->account)) {
      $obj->account =  $args->account;
    }
    if (isset($args->password)) {
      $obj->password =  $args->password;
    }
    if (isset($args->email)) {
      $obj->email =  $args->email;
    }
    if (isset($args->title)) {
      $obj->title =  $args->title;
    }
    if (isset($args->desc)) {
      $obj->desc =  $args->desc;
    }
    if (isset($args->keywords)) {
      $obj->keywords =  $args->keywords;
    }
    if (isset($args->mail_host)) {
      $obj->mail_host =  $args->mail_host;
    }
    if (isset($args->mail_SMTPAuth)) {
      $obj->mail_SMTPAuth =  $args->mail_SMTPAuth;
    }
    if (isset($args->mail_account)) {
      $obj->mail_account =  $args->mail_account;
    }
    if (isset($args->mail_password)) {
      $obj->mail_password =  $args->mail_password;
    }
    if (isset($args->mail_from_mail)) {
      $obj->mail_from_mail =  $args->mail_from_mail;
    }
    if (isset($args->mail_from_name)) {
      $obj->mail_from_name =  $args->mail_from_name;
    }
    if (isset($args->theme_id)) {
      $obj->theme_id =  $args->theme_id;
    }
    return $obj;
  }
}
?>
